package gui;

import java.awt.*;
import javax.swing.*;

public class BooleanCheckBox extends JComponent {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private boolean val;
	private JCheckBox box;
	public BooleanCheckBox(String desc, boolean initial) {
		box = new JCheckBox(desc,initial);
		setLayout(new FlowLayout());
		add(box);
	}
	public boolean getValue() {
		return box.isSelected();
	}
}
